<?php


namespace app\common\model\dealer;


use app\common\model\BaseModel;

class RecordLog extends BaseModel
{
    protected $name = 'dealer_record_log';

    /**
     * 关联分销商用户表
     * @return \think\model\relation\BelongsTo
     */
    public function user()
    {
        $module = self::getCalledModule() ?: 'common';
        return $this->belongsTo("app\\common\\model\\User", 'user_id');
        //return $this->belongsTo('User');
    }

    /**
     * 关联级差结算记录
     * @return \think\model\relation\BelongsTo
     */
    public function record(){
        return $this->belongsTo('Record');
    }
    
}